# # # 练习题，开始上强度了

# # 1
# # 对列表的处理
# # 千年虫问题



# chushen=[88,89,90,98,00,84,96]
# print(chushen)
# for i in range(len(chushen)):
#     if chr(chushen[i])!='0':
#         chushen[i]=eval('19'+str(chushen[i]))
#     else:
#         chushen[i]=eval('200'+str(chushen[i]))
# print(chushen)



# # 2
# # 模拟购物


# gouwu=[]
# dingdan=[]
# for i in range(5):
#     gouwu.append(input('请输入你要入库的商品,编号+名称'))
# panduan=input('请输入你要买的东西编号,q结束')
# while panduan!='q':
#     for i in gouwu:
#         if panduan==i[:4]:
#             dingdan.append(i)
#             print("添加成功")
#             break
#     else:print('输入错误')
#     panduan=input('请输入你要买的东西编号,q结束')
# dingdan.reverse()
# for i in dingdan:
#     print(i)



# # 3
# # 模拟火车购票

# print ('车次    时间    地点')
# ce={'ac123':[12,'wh'],'ab520':[15,'kh'],'dc152':[13,'sd']}
# for i in ce:
#     print(i,end='   ')
#     print(ce.get(i)[0],end='       ')
#     print(ce.get(i)[1])
# jilu=input("请输入你的名字")
# jilu2=input("请输入车次")
# for j in ce:
#     if jilu2==j:
#         print("恭喜你成功购买"+j+'号航班本次前往'+ce.get(j)[1]+',请'+jilu+f'在{ce.get(j)[0]}点之前登机')
#         break
# else:print('车次错误')

